import { http, assignData } from '../utils/request'
// 获取用户信息
export const getApiUserInfo = (code,anonymousCode,euid) =>
  http.post('/User/ttUniAppCheckUser', assignData({ code: code,euid,anonymous_code:anonymousCode }))

/** 已有用户信息后更新用户信息*/
export const apiUpdateUserCid = (eid, cid, aid) =>
  http.post('/User/updateUserCid', { eid, cid, aid })

/**获取用户余额 */
export const getApiBalance = (eid) =>
  http.get(`/User/getUserBalance`, assignData({ eid }))

 /** 提交用户反馈信息*/
export const postFeedback = (data) =>
  http.post('/User/postFeedback', assignData(data))
 
/**
 * 获取订单列表
 * @param {*} eid 
 * @param {*} pn 
 * @param {*} ps 
 * @returns 
 */
  export const getApiUserOrderList = ( eid,pn,ps ) =>
  http.get(`/User/getUserOrderList`, assignData({ eid,pn,ps }))

  
  export const getApiUserBuyVideoList = ( eid,pn,ps ) =>
  http.get(`/Vip/getUserBuyVideoList`, assignData({ eid,pn,ps }))